// Sunghan Cho
// 301140084
// sunghanc@sfu.ca

#ifndef ITEMMANAGER_H
#define ITEMMANAGER_H

#include <QObject>
#include <QList>
#include <QVariant>
#include "item.h"

class ItemManager : public QObject
{
    Q_OBJECT
public:
    explicit ItemManager(QObject *parent = 0);
    ~ItemManager();
    void addItem(Item* pItem);
    int getItemCount();
    QListIterator<Item*> getIterator();
    Item* findMatchingItem(QVariant keyValue);
    void debugDumpData();

private:
    QList<Item*> m_items;
    
signals:
    void itemsChanged();    
};

#endif // ITEMMANAGER_H
